import { CrudUrlSet } from '../../packages/models/index';
export const DemoUrlSet: CrudUrlSet = {
    getListApiUrl: '/q_api/demo/list',
    getSingleApiUrl: '/q_api/demo',
    addApiUrl: '/q_api/demo/create',
    editApiUrl: '/q_api/demo/update',
    delApiUrl: '/q_api/demo/delete',
    importApiUrl: '/q_api/demo/importdemos',
    keyFieldName: 'demoID',
    title: '演示'
}
export const DemoUrlRestfulSet: CrudUrlSet = {
    restfulApiUrl: '/q_api/demo/rest',
    importApiUrl: '/q_api/demo/importdemos',
    keyFieldName: 'demoID',
    title: '演示'
}

export const QuestionGroupUrlSet: CrudUrlSet = {
    getListApiUrl: '/q_api/questiongroup/list',
    getSingleApiUrl: '/q_api/questiongroup',
    addApiUrl: '/q_api/questiongroup/create',
    editApiUrl: '/q_api/questiongroup/update',
    delApiUrl: '/q_api/questiongroup/delete',
    multiSetApiUrl: '/q_api/questiongroup/multiset',
    keyFieldName: 'gid',
    title: '题组',
    needResetKeysWhenUpdated: ['/q_api/questiongroup/getallquestions/?']
}

export const SubjectUrlSet: CrudUrlSet = {
    getListApiUrl: '/q_api/subject/list',
    getSingleApiUrl: '/q_api/subject',
    addApiUrl: '/q_api/subject/create',
    editApiUrl: '/q_api/subject/update',
    delApiUrl: '/q_api/subject/delete',
    keyFieldName: 'subjectID',
    title: '科目'
}

export const JobUrlSet: CrudUrlSet = {
    getListApiUrl: '/q_api/job/list',
    getSingleApiUrl: '/q_api/job',
    addApiUrl: '/q_api/job/createjob',
    editApiUrl: '/q_api/job/updatejob',
    delApiUrl: '/q_api/job/delete',
    keyFieldName: 'session_id',
    title: '做题记录'
}